﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="BandejaEvaluador.aspx.cs" Inherits="SOA_BandejaWF_BandejaEvaluador" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

    <script type="text/javascript">
        if (window.dialogArguments) {
            window.opener = window.dialogArguments;
        }
    </script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
            
    <div id="contenedor900">
        <table border = "0" cellpadding = "0" cellspacing = "0" style="width:100%">
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text=":: Bandeja Evaluador"  SkinID="labelsubTituloSkin"></asp:Label>            
                </td>
            </tr>
            <tr>
                <td style="height:10px"><hr id="separador1" /></td>
            </tr>
        </table>

        <table border = "0" cellpadding = "0" cellspacing = "0" style="width:100%">
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" Text="Opciones para el listado" 
                    SkinID="labelTituloPANEL" ></asp:Label>
                <asp:Panel ID="Panel1" runat="server" SkinID="panelSkin">
                <table border = "0" cellpadding = "2" cellspacing = "0" style="width:100%">
                    <tr><td  style="height:5px" colspan="6"></td></tr>
                    <tr>
                        <td style="width:10px"></td>
                        <td style="width:100px">
                            <asp:Label ID="Label4" runat="server" Text="Tipo de Documento" SkinID="labelTextSkin"></asp:Label>
                        </td>
                        <td  style="width:12px">                            
                            <asp:DropDownList ID="ddlTipDocWF" runat="server" Width="200px" 
                                SkinID="DropDownListTextSkin" AutoPostBack="True" 
                                onselectedindexchanged="ddlTipDocWF_SelectedIndexChanged" >
                            </asp:DropDownList>
                        </td>
                        <td ></td>
                    </tr>
                    <tr><td  style="height:5px" colspan="6"></td></tr>
                </table>
                </asp:Panel>
            </td>       
        </tr>
        </table>

        <table border = "0" cellpadding = "0" cellspacing = "0" style="width:100%">
        <tr>
            <td>
                <asp:Label ID="Label24" runat="server" Text="Listado de Documentos" 
                    SkinID="labelTituloPANEL" ></asp:Label>
                <asp:Panel ID="Panel6" runat="server" SkinID="panelSkin">
                <table border = "0" cellpadding = "2" cellspacing = "0" style="width:100%">
                    <tr>
                        <td style="height:250px; vertical-align:top;">
                            <asp:GridView ID="grvListaBandeja" runat="server" 
                                Width="100%" AutoGenerateColumns="False" 
                                AllowPaging="True" AllowSorting="True" 
                                SkinID="gridviewSkin" BorderColor="Gray" BorderStyle="Solid" 
                                BorderWidth="1px" CellPadding="4" ForeColor="#333333" 
                                GridLines="None" ShowHeaderWhenEmpty="True" CellSpacing="1" 
                                EnableSortingAndPagingCallbacks="True"> 
                                <AlternatingRowStyle BackColor="White" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="cCodTipDoc" HeaderText="Doc.">
                                    <ItemStyle Width="4%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="cNroDoc" HeaderText="Código">
                                    <ItemStyle Width="7%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="dFecMov" HeaderText="Fecha" 
                                        DataFormatString="{0:d} ">
                                    <ItemStyle Width="7%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="cTipUODes" HeaderText="Tipo">
                                    <ItemStyle Width="5%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="cUODes" HeaderText="Unidad Orgánica">
                                    <ItemStyle Width="20%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="cUserEnvia" HeaderText="Enviado Por">
                                    <ItemStyle Width="20%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="cActRealizada" HeaderText="Actividad Realizada">
                                    <ItemStyle Width="20%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="cActPorRealizar" HeaderText="Actividad a Realizar">
                                    <ItemStyle Width="20%" />
                                    </asp:BoundField>
                                    <asp:CommandField ShowSelectButton="True">
                                    <ItemStyle Width="5%" />
                                    </asp:CommandField>
                                    <asp:BoundField DataField="cprm_Estado" HeaderText="Estado">
                                    <ItemStyle Width="5%" />
                                    </asp:BoundField>
                                </Columns>
                                <EditRowStyle BackColor="#999999" />
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                                    Height="30px" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" 
                                    Height="30px" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="30px" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                             </asp:GridView>                            
                        </td>
                    </tr>
                    </table>
                </asp:Panel>
            </td>       
        </tr>
        </table>
        <table border = "0" cellpadding = "2" cellspacing = "0" style="width:100%">
            <tr><td style="height:10px" colspan="2"></td></tr>
            <tr>
                <td align="center" style = "width:100%;">
                    <asp:ImageButton ID="imbEvaluar" runat="server" 
                        ImageUrl="~/imagenes/btn_evaluar1.png" 
                        ToolTip="Evaluar documento" onclick="imbEvaluar_Click" />
                    &nbsp;&nbsp;&nbsp;&nbsp;</td>
            </tr>
            <tr><td style="height:5px" colspan="2" align="center">
                <asp:Label ID="lblMsj" runat="server" Text="Label" SkinID="labelMsjSkin" 
                    Visible="False"></asp:Label>
            </td></tr>
        </table>

        <table border = "0" cellpadding = "0" cellspacing = "0" style="width:100%">
            <tr>
                <td style="height:10px; vertical-align:middle;" ><hr id="separador1" /></td>
            </tr>
            <tr>
                <td>
                    <asp:ImageButton ID="imb_Cerrar" runat="server" 
                        ImageUrl="~/imagenes/btn_cerrar1.png" onclick="imb_Cerrar_Click" 
                        ToolTip="Cerrar Legajo" />
                </td>
            </tr>
        </table>

    </div>

    </ContentTemplate>
</asp:UpdatePanel>

<!-- ConfirmMsjSelect -->
<asp:UpdatePanel ID="UpdatePanel8" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:Panel ID="msgMain8" runat="server" style="display:none; border-style:solid; border-color:Gray; background-color:White; padding:15px;" Width="300px"  >
            <div style="text-align:center; ">
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr><td style="height:15px"></td></tr>
                    <tr>
                        <td style="width:50px; text-align:center;">
                            <asp:ImageButton ID="ImageButton8" runat="server" ImageUrl="~/imagenes/btn_alert.png" />
                        </td>                                            
                        <td>
                            <asp:Label ID="lblMsjConfirm8" runat="server" Text="Debe de selecionar un documento a evaluar." 
                                ForeColor="Black" /><br />
                        </td>
                    </tr>
                    <tr><td  style="height:20px"></td></tr>
                    <tr>
                        <td colspan="2">
                            <asp:ImageButton ID="imbOK8" runat="server" ImageUrl="~/imagenes/btn_msjaceptar2.png" />
                        </td>
                    </tr>
                    <tr>
                        <td  style="height:15px"></td>
                    </tr>
                </table>
            </div>
        </asp:Panel>
        <asp:HiddenField ID="hdfModalSelect8" runat="server"  />
        <asp:ModalPopupExtender ID="modalPopupSelect" runat="server" PopupControlID="msgMain8" 
                                TargetControlID="hdfModalSelect8" 
                                CancelControlID="imbOK8" 
                                BackgroundCssClass="backgroundPopup" 
        DynamicServicePath="" Enabled="True">
        </asp:ModalPopupExtender>
    </ContentTemplate>
</asp:UpdatePanel>

<!-- ConfirmMsjInconsistencia -->
<asp:UpdatePanel ID="UpdatePanel7" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:Panel ID="msgMain7" runat="server" style="display:none; border-style:solid; border-color:Red; background-color:White; padding:15px;" Width="300px"  >
            <div style="text-align:center; ">
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr><td style="height:15px"></td></tr>
                    <tr>
                        <td style="width:50px; text-align:center;">
                            <asp:ImageButton ID="ImageButton7" runat="server" ImageUrl="~/imagenes/btn_error.png" />
                        </td>                                            
                        <td>
                            <asp:Label ID="lblMsjConfirm7" runat="server" Text="Se produjo un error al iniciar los datos, cierre la ventana y vuelva a intentarlo." 
                                ForeColor="Black" /><br />
                        </td>
                    </tr>
                    <tr><td  style="height:20px"></td></tr>
                    <tr>
                        <td colspan="2">
                            <asp:ImageButton ID="imbOK7" runat="server" ImageUrl="~/imagenes/btn_msjaceptar2.png" />
                        </td>
                    </tr>
                    <tr>
                        <td  style="height:15px"></td>
                    </tr>
                </table>
            </div>
        </asp:Panel>
        <asp:HiddenField ID="hdfModalSelect7" runat="server"  />
        <asp:ModalPopupExtender ID="modalPopupInconsistencia" runat="server" PopupControlID="msgMain7" 
                                TargetControlID="hdfModalSelect7" 
                                CancelControlID="imbOK7" 
                                BackgroundCssClass="backgroundPopup" 
        DynamicServicePath="" Enabled="True">
        </asp:ModalPopupExtender>
    </ContentTemplate>
</asp:UpdatePanel>

</asp:Content>

